package com.smart;

import cn.dev33.satoken.SaManager;
import cn.xuyanwu.spring.file.storage.EnableFileStorage;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * 启动入口
 */
@EnableFileStorage
@SpringBootApplication(scanBasePackages = {"com.smart"})
@EnableTransactionManagement
@EnableScheduling
@EnableSwagger2
@MapperScan("com.smart.mapper")
public class Application {

	public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
        System.out.println("启动成功，Sa-Token 配置如下：" + SaManager.getConfig());
	}
}
